package com.huawei.studentms.service.impl;

import com.huawei.studentms.dao.StudentDao;
import com.huawei.studentms.dao.impl.StudentDaoImpl;
import com.huawei.studentms.entity.StudentEntity;
import com.huawei.studentms.service.StudentService;

import java.util.List;

/**
 * @author 黄后林
 * @date 2022-11-06 10:25:12
 * @note 程序员是用代码喂出来的
 */
public class StudentServiceImpl implements StudentService {

    private StudentDao dao = new StudentDaoImpl();

    @Override
    public List<StudentEntity> findAll() throws Exception {
        return dao.findAll();
    }

    @Override
    public StudentEntity findById(Integer id) throws Exception {
        return dao.findById(id);
    }

    @Override
    public boolean updateById(StudentEntity entity) throws Exception {
        return dao.updateById(entity);
    }
}
